home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / misc-part2 / 11077 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.0 KB  |  45 lines

  1. Newsgroups: comp.sys.amiga.misc
  2. References: <4j7ein$a6v@B1FF.mindspring.com> <31637208.2913@xgw.fi> 
  3. X-Newsreader: MicroDot 1.8 
  4. Mime-version: 1.0
  5. Content-Type: text/plain; charset=iso-8859-1
  6. Content-Transfer-encoding: 8BIT
  7. Path: news.tng.oche.de!tomate.tng.oche.de
  8. X-Gateway: ZCONNECT UE utomate.tng.oche.de.tomate.tng.oche.de [PolyNet zTOr V4.901 Serie: "light"]
  9. Subject: Re: AmigaOS 4.x features
  10. Message-ID: <xY6aBMD1A7aezA@0dietmar.tomate.tng.oche.de>
  11. Date: Thu,  4 Apr 96  9:37:53 GMT
  12. Organization: Developer
  13. X-ZC-TELEFON: +49-(0)241/81665
  14. X-ZC-POST: Mies-v-d-Rohe-Str.31 D-52074 Aachen
  15. From: DIETMAR@TOMATE.TNG.OCHE.DE (Dietmar Eilert)
  16.  
  17. karttu@xgw.fi (Arttu KSrpinlehto ) schrieb am 03.04.1996:
  18.  
  19. A)> [DOS pattern matching
  20. A)> 
  21. A)> And, in addition, these pattern matching operations are available to any
  22. A)> application for any purpose, not just for filenames.  By accessing a single 
  23. A)> function in the dos.library DLL, one could easily implement a regexp string 
  24. A)> search feature in a text editor or database application.
  25.  
  26. No, you can't. The DOS functions only return TRUE or FALSE. Text editors
  27. need the exact position of the match within a line and the length of the
  28. found string (if wildcards are used in a replace pattern). You could write
  29. a frontend for those functions (calling pattern machting multiple times for
  30. substrings of the line until the match is found using a smart algorithm)
  31. but this solution has some logical limitations - you can not handle all
  32. possible patterns this way. Besides, it's slow. Support for backward search
  33. within text lines would require a frontend function, too: DOS functions
  34. support forward search only.
  35.  
  36. * In a random sampling of GoldED users, 100% said that they'd rather use
  37.   GoldED than be publically flogged, eaten alive by pirhanas, OR watch
  38.   SeaQuest DSV.
  39.  
  40. /\/\ GoldED Support: http://www.clearlight.com/~dietmar
  41. /\/\ E-Mail:         dietmar@tomate.tng.oche.de
  42. /\/\ Fileserver:     dietmar@clearlight.com (subject: send file info)
  43.      Phone/FAX:      +49-(0)241-81665-(Pause)-22
  44.  
  45.